// src/api/auth.js
import apiClient from './index'; // 导入配置好的实例

export const authApi = {
  login: (data) => apiClient.post('/auth/login', data),
  register: (data) => apiClient.post('/auth/register', data),
  // 新增 logout API 调用
  logout: () => apiClient.post('/auth/logout')
};